/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package gamedsl2.util;

import gamedsl2.*;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see gamedsl2.Gamedsl2Package
 * @generated
 */
public class Gamedsl2AdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static Gamedsl2Package modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Gamedsl2AdapterFactory() {
		if (modelPackage == null) {
			modelPackage = Gamedsl2Package.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc -->
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
	 * <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch that delegates to the <code>createXXX</code> methods.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected Gamedsl2Switch<Adapter> modelSwitch =
		new Gamedsl2Switch<Adapter>() {
			@Override
			public Adapter caseEnvironment(Environment object) {
				return createEnvironmentAdapter();
			}
			@Override
			public Adapter caseAbstractEnvironment(AbstractEnvironment object) {
				return createAbstractEnvironmentAdapter();
			}
			@Override
			public Adapter caseTileEnvironment(TileEnvironment object) {
				return createTileEnvironmentAdapter();
			}
			@Override
			public Adapter caseEntity(Entity object) {
				return createEntityAdapter();
			}
			@Override
			public Adapter caseAbstractEntity(AbstractEntity object) {
				return createAbstractEntityAdapter();
			}
			@Override
			public Adapter caseActorPhysics(ActorPhysics object) {
				return createActorPhysicsAdapter();
			}
			@Override
			public Adapter caseTile(Tile object) {
				return createTileAdapter();
			}
			@Override
			public Adapter caseTileShapes(TileShapes object) {
				return createTileShapesAdapter();
			}
			@Override
			public Adapter caseGameHolder(GameHolder object) {
				return createGameHolderAdapter();
			}
			@Override
			public Adapter caseState(State object) {
				return createStateAdapter();
			}
			@Override
			public Adapter caseMapLoader(MapLoader object) {
				return createMapLoaderAdapter();
			}
			@Override
			public Adapter caseRectangularEntity(RectangularEntity object) {
				return createRectangularEntityAdapter();
			}
			@Override
			public Adapter caseActorGame(ActorGame object) {
				return createActorGameAdapter();
			}
			@Override
			public Adapter caseTileSet(TileSet object) {
				return createTileSetAdapter();
			}
			@Override
			public Adapter caseEvent(Event object) {
				return createEventAdapter();
			}
			@Override
			public Adapter caseIEventHandler(IEventHandler object) {
				return createIEventHandlerAdapter();
			}
			@Override
			public Adapter caseEventTracker(EventTracker object) {
				return createEventTrackerAdapter();
			}
			@Override
			public Adapter caseSprite(Sprite object) {
				return createSpriteAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.Environment <em>Environment</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.Environment
	 * @generated
	 */
	public Adapter createEnvironmentAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.AbstractEnvironment <em>Abstract Environment</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.AbstractEnvironment
	 * @generated
	 */
	public Adapter createAbstractEnvironmentAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.TileEnvironment <em>Tile Environment</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.TileEnvironment
	 * @generated
	 */
	public Adapter createTileEnvironmentAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.Entity <em>Entity</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.Entity
	 * @generated
	 */
	public Adapter createEntityAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.AbstractEntity <em>Abstract Entity</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.AbstractEntity
	 * @generated
	 */
	public Adapter createAbstractEntityAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.ActorPhysics <em>Actor Physics</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.ActorPhysics
	 * @generated
	 */
	public Adapter createActorPhysicsAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.Tile <em>Tile</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.Tile
	 * @generated
	 */
	public Adapter createTileAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.TileShapes <em>Tile Shapes</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.TileShapes
	 * @generated
	 */
	public Adapter createTileShapesAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.GameHolder <em>Game Holder</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.GameHolder
	 * @generated
	 */
	public Adapter createGameHolderAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.State <em>State</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.State
	 * @generated
	 */
	public Adapter createStateAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.MapLoader <em>Map Loader</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.MapLoader
	 * @generated
	 */
	public Adapter createMapLoaderAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.RectangularEntity <em>Rectangular Entity</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.RectangularEntity
	 * @generated
	 */
	public Adapter createRectangularEntityAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.ActorGame <em>Actor Game</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.ActorGame
	 * @generated
	 */
	public Adapter createActorGameAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.TileSet <em>Tile Set</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.TileSet
	 * @generated
	 */
	public Adapter createTileSetAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.Event <em>Event</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.Event
	 * @generated
	 */
	public Adapter createEventAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.IEventHandler <em>IEvent Handler</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.IEventHandler
	 * @generated
	 */
	public Adapter createIEventHandlerAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.EventTracker <em>Event Tracker</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.EventTracker
	 * @generated
	 */
	public Adapter createEventTrackerAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link gamedsl2.Sprite <em>Sprite</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see gamedsl2.Sprite
	 * @generated
	 */
	public Adapter createSpriteAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //Gamedsl2AdapterFactory
